<?php
namespace app\validate;

use think\Validate;

class Login extends Validate
{
    protected $rule = [
        'phone'  =>  'require|mobile',
        'password' =>  'require'
    ];

    protected $message = [
        'phone.require' => '请输入您的手机号码',
        'phone.mobile' => '手机号码格式不正确',
        'password.require' => '请输入您的登录密码'
    ];
}